<section class="other">
    <h2>
		<?php 
		$history  = Model_History::getMobileList();
		
		echo $this->t("See Also...");?>
	</h2>
<?php if(Zend_Controller_Front::getInstance()->getRequest()->getActionName()!='viewed'):?>
    <h1><a href="/user/viewed"><?php echo $this->t("Recently Viewed Ads");?><em>(<?php 
		if(!empty($history)){
			$count=0;
			foreach ($history as $bmk) 
			{
				$item = $bmk->listing;
				if (empty($item)){
					continue;
				}
				$count++;
			}
			echo $count;
		}else
			echo "0";
	?>)</em><span>&gt;</span></a></h1>
<?php endif; ?>
<?php if(Zend_Controller_Front::getInstance()->getRequest()->getActionName()!='saved'):?>
	<?php if(!empty($this->loggedin_user)):?>
	<?php 
	$bookmark  = Model_Bookmark::getList(array('us'=>$this->loggedin_user->_id));
	$count = 0;
	if(!empty($bookmark))
	{
		foreach ($bookmark as $bmk) 
		{
			$item = $bmk->listing;
			if (empty($item)) {
				continue;
                        }
			$count++;
		}
	}
	?>
    	<h1><a href="/user/saved"><?php echo $this->t("Saved Ads");?><em>(<?php echo $count;?>)</em><span>&gt;</span></a></h1>
    <?php else:?>
    	<h1><a href="/user/saved"><?php echo $this->t("Saved Ads");?><em>(0)</em><span>&gt;</span></a></h1>
    <?php endif;?>
<?php endif;?>
</section>